/*
 * @Author: 许警 11378748333@
 * @Date: 2025-03-19 15:28:03
 * @LastEditors: 许警 11378748333@
 * @LastEditTime: 2025-07-15 16:18:06
 * @FilePath: /hsxlsystem/src/api/content/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from '../request.js'

// 修改密码短信发送
export function passwordSms(data) {
  return http.request({
    url: '/admin/login/passwordSms?mobile=' + data,
    method: 'get'
  })
}
// 登录
export function userLogin(data) {
  return http.request({
    url: '/admin/login/login',
    method: 'post',
    data
  })
}
// 登录时查看账号
export function selectAccount(data) {
  return http.request({
    url: '/admin/login/selectAccount',
    method: 'get',
    data
  })
}
// 修改密码
export function updatePassword(data) {
  return http.request({
    url: '/admin/login/updatePassword',
    method: 'post',
    data
  })
}
// 获取登录信息
export function getLoginInfo(data) {
  return http.request({
    url: '/admin/login/getLoginInfo',
    method: 'get',
    data
  })
}

// 后台查询视频列表
export function selectAdminVideoList(data) {
  return http.request({
    url: '/admin/saleVideo/selectAdminVideoList',
    method: 'post',
    data
  })
}

// 后台新增编辑视频
export function addOrUpdateVideo(data) {
  return http.request({
    url: '/admin/saleVideo/addOrUpdateVideo',
    method: 'post',
    data
  })
}

// 后台删除编辑视频
export function deleteVideoById(params) {
  return http.request({
    url: '/admin/saleVideo/deleteVideoById',
    method: 'get',
    params
  })
}

// 视频详情
export function selectVideoById(data) {
  return http.request({
    url: '/admin/saleVideo/selectVideoById',
    method: 'post',
    data
  })
}

// 会员列表
export function selectNurseVipList(data) {
  return http.request({
    url: '/admin/nurseVip/selectNurseVipList',
    method: 'post',
    data
  })
}

// 会员列表 发货
export function vipSendBag(data) {
  return http.request({
    url: '/admin/nurseVip/vipSendBag',
    method: 'post',
    data
  })
}

// 会员列表 导出
export function selectNurseVipListExport(data) {
  return http.request({
    url: '/admin/nurseVip/selectNurseVipListExport',
    method: 'post',
    data
  })
}
